<template>
	<view>
		<view class="top">
			<u-tabs :list="tabList" :current="current" lineWidth="40" lineColor="#FE4030" :activeStyle="{
			    color: '#333333',
			    fontWeight: 'bold',
			}" :inactiveStyle="{
			    color: '#333333',
			}" itemStyle="height:88rpx;font-size:30rpx; width:180rpx; padding:0 30rpx;" @change="change"></u-tabs>
		</view>
		<view>
			<view class="block" v-if="current==0">
				<view>
					<view class="name">用户名称</view>
					<view class="font">手机号：15352664699</view>
				</view>
				<view class="right">
					<text>通过</text>
					<text>拒绝</text>
				</view>
			</view>
			<view class="block" v-if="current==1">
				<view>
					<view class="name">用户名称</view>
					<view class="font">手机号：15352664699</view>
				</view>
				<view class="right">
					<view class="font">审核通过</view>
					<view class="font">审核时间：2023-05-09 10:00:00</view>
				</view>
			</view>
			<view class="block" v-if="current==2">
				<view>
					<view class="name">用户名称</view>
					<view class="font">手机号：15352664699</view>
				</view>
				<view class="right">
					<view class="font">审核拒绝</view>
					<view class="font">审核时间：2023-05-09 10:00:00</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				tabList: [{
					name: '待审核'
				}, {
					name: '已通过'
				}, {
					name: '已拒绝'
				}],
				current: 0,
			}
		},
		methods: {
			change(e) {
				console.log(e)
				this.current = e.index
			},
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #ffffff;
	}

	.top {
		width: 722rpx;
		height: auto;
		margin: 0 auto;
		margin-top: 32rpx;
		font-size: 30rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #333333;
	}
	.block{
		width: 682rpx;
		height: 130rpx;
		background-color: #f9f9f9;
		border-radius:16rpx;
		margin: 0 auto;
		margin-top: 20rpx;
		display: flex;
		justify-content: space-between;
		.name{
			font-size: 28rpx;
			font-family: PingFang SC-Bold, PingFang SC;
			font-weight: bold;
			color: #333333;
			line-height: 40rpx;
			margin: 20rpx 10rpx 0 10rpx;
		}
		.font{
			font-size: 24rpx;
			font-family: PingFang SC-Medium, PingFang SC;
			font-weight: 500;
			color: #777777;
			line-height:40rpx;
			margin: 20rpx 10rpx 0 10rpx;
		}
		.right{
			text-align: right;
			text:first-child{
				width: 106rpx;
				height: 50rpx;
				display: inline-block;
				border: #3091FC solid 1px;
				border-radius: 8rpx;
				text-align: center;
				font-size: 26rpx;
				font-family: PingFang SC-Medium, PingFang SC;
				font-weight: 500;
				color: #3091FC;
				line-height: 50rpx;
				margin: 40rpx 20rpx 0 0;
				background-color: #E1EFFF;
			}
			text:last-child{
				width: 106rpx;
				height: 50rpx;
				display: inline-block;
				border: #E21818 solid 1px;
				background-color:#FFF4F1;
				border-radius: 8rpx;
				text-align: center;
				font-size: 26rpx;
				font-family: PingFang SC-Medium, PingFang SC;
				font-weight: 500;
				color:#E21818;
				line-height: 50rpx;
				margin: 40rpx 20rpx 0 0;
			}
		}
	}
</style>